
$(document).ready(function(){
    /******************************/
    //ajax
    $('#AddProductButton').click(function(){
        var title = $('#productTitle').val();
        var desc = $('#productDesc').val();
        var price = $('#productPrice').val();
        var file = $('#productFile').val();
        $.ajax({
            url:'../inc/addproduct',
            data:'title='+title+'&desc='+desc+'&priice='+price+'&file='+file,
            success: function(data){
                alert('done');
            }
        });
    });
});
             
          
           